
public class LengthStringCharByte {

	public static void main(String[] args) {
		String s = "Olá Mundo";
		System.out.println("String = " + s.length());
		System.out.println("[Char] = " + s.toCharArray().length);
		System.out.println("[Byte] = " + s.getBytes().length);
	}

}
